/**
 * 
 */
package v1c03;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;

/**
 * @author gjunming@gmail.com
 * @version Aug 4, 2009 5:13:03 PM
 */
public class FileWrite {

	/**
	 * @param args
	 * @throws FileNotFoundException
	 */
	public static void main(String[] args) throws FileNotFoundException {
		File fileWrite = new File(
				"E:\\javaprojects\\java-tutorial\\corejava\\src\\v1c03\\FileWrite.txt");
		PrintWriter pw = new PrintWriter(fileWrite);
		pw.println("hello world a gain");
		pw.append("hellllllll \n");
		pw.append("ahaaaaaaaaa \n");
		// pw.flush();
		pw.close();// must need to do this
		
	}
}
